﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Arith.Boxing
{
    class BoxingDemo1
    {
        public static void Main()
        {
            int n = 10;
            object o = n;
            ShowValue(o);

        }
        public static void ShowValue(object box)
        {
            int k = (int)box; // unboxing
            Console.WriteLine("Value is " + k);

            Console.Read();
        }
    }
}
